#include<iostream>
#include<cstring>
using namespace std;;
int main(){
    int n;
    cin>>n;
    string a;
    while(n>0){
    getchar();
    cin>>a;
    if(a[0]+a[1]+a[2]==a[3]+a[4]+a[5])
        cout<<"You are lucky!\n";
    else
        cout<<"Wish you good luck.\n";
    n--;
    }
    return 0;
}